package com.fh.modules.pms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fh.common.query.QueryRuleEnum;
import com.fh.common.query.annotation.QueryWrapperRule;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 商品库存
 * @author： code generator
 * @date：   2019-09-26
 * @version： V1.0
 */
@Data
@TableName("pms_sku_stock")
public class PmsSkuStock implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**创建人*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/**删除状态（0，正常，1已删除）*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer delFlag;
	/**赠送的积分*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer giftPoint;
	/**id*/
	@TableId(type = IdType.UUID)
	private Integer id;
	/**锁定库存*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer lockStock;
	/**预警库存*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer lowStock;
	/**展示图片*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String pic;
	/**price*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private java.math.BigDecimal price;
	/**productId*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer productId;
	/**销量*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer sale;
	/**sku编码*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String skuCode;
	/**销售属性1*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String sp1;
	/**销售属性2*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String sp2;
	/**销售属性3*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String sp3;
	/**销售属性4*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String sp4;
	/**销售属性5*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String sp5;
	/**销售属性6*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String sp6;
	/**库存*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer stock;
	/**更新人*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	/**会员vip价格*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private java.math.BigDecimal vipPrice;
}
